"""
@Project:xiaomishop
@File:urls.py
@Author:马可
@Date:上午 08:57
"""

from django.urls import path
from . import views

urlpatterns = [
    path('carouseles/', views.CarouselView.as_view()),    # 所有的轮播图数据
    path('oneCategory/goods/',views.GoodsByCateName.as_view()), # 获取商品数据
    path('getHotProduct/', views.HotProductViews.as_view()),    # 热门商品
    path('cates/',views.CategoryView.as_view()), # 获取所有类别
    path('good/getProductByCategory/',views.GoodsByCategoryId.as_view()),   # 根据类别获取商品
    path('good/getAllProduct/',views.GoodsViews.as_view()),  # 获取所有的商品
    path("onegood/imgs/",views.GoodPicture.as_view()),  # 根据商品id获取商品图片
    path('gooddetail/', views.GoodDetail.as_view()), # 根据商品id获取商品
    path('oneGood/history/', views.AddHistory.as_view()),  # 添加历史浏览记录
    path('collects/',views.CollectView.as_view()), # 添加收藏
    path('collects/all/',views.CollectInfoView.as_view()),   # 获取收藏数据
    path('user/deletecollect/',views.CollectDelView.as_view()), # 删除
]
